import request from '@/utils/request'

// 查询每日流水列表
export function listStatistic(query) {
  return request({
    url: '/daily/statistic/list',
    method: 'get',
    params: query
  })
}

// 查询每日流水详细
export function getStatistic(dailyFlowId) {
  return request({
    url: '/daily/statistic/' + dailyFlowId,
    method: 'get'
  })
}

// 新增每日流水
export function addStatistic(data) {
  return request({
    url: '/daily/statistic',
    method: 'post',
    data: data
  })
}

// 修改每日流水
export function updateStatistic(data) {
  return request({
    url: '/daily/statistic',
    method: 'put',
    data: data
  })
}

// 删除每日流水
export function delStatistic(dailyFlowId) {
  return request({
    url: '/daily/statistic/' + dailyFlowId,
    method: 'delete'
  })
}
